home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / APPUN.ZIP / APPTOOLS.C < prev    next >
C/C++ Source or Header  |  1993-02-21  |  802b  |  22 lines

  1. //compile with the strictest error checking
  2. #define STRICT
  3. #include <windows.h>
  4. #include <windowsx.h>
  5. #include <shellapi.h>
  6. #include <ctl3d.h>
  7. #include "apprun.h"
  8.  
  9. /*----------------------------------------------------------------------------*/
  10. /* FUNCTION: OkMsgBox(char *szCaption, char *szFormat, ...)             */
  11. /*                                                                            */
  12. /* PURPOSE:  Display in an OKmessageBox a given text                       */
  13. /*----------------------------------------------------------------------------*/
  14. VOID OkMsgBox(char *szCaption, char *szFormat, ...)
  15.     {
  16.     char *pArguments;
  17.  
  18.     pArguments = (char *) &szFormat + sizeof(szFormat);
  19.     vsprintf(szBuffer, szFormat, pArguments);
  20.     MessageBox(NULL, szBuffer, szCaption, MB_OK);
  21.     }
  22.